#!/usr/bin/env python
# encoding: UTF-8

__version__ = "$Id: compute_torsion_angles.py 28 2009-11-15 10:55:59Z fylyp2 $"

import sqlite3
import logging

DB_NAME = "db.sqlite"

conn = sqlite3.connect(DB_NAME)
c = conn.cursor()
c.execute("SELECT name FROM sqlite_master WHERE type='table' AND name LIKE 'contacts_%'")

# extract codes from table names retrieved from the db
codes = [row[0].split('_')[1] for row in c]
